Skip to content

ObservableForPropertySink class

Attributes: [EditorBrowsable(EditorBrowsableState.1)]

Defined in

Namespace: ReactiveUI.Binding.ObservableForProperty Assembly: ReactiveUI.Binding.dll Full name: ReactiveUI.Binding.ObservableForProperty.ObservableForPropertySink<T1, T2> Modifiers: public sealed

Summary

View source

Single fused observable for one named property: optionally emits the current value on subscribe, then re-reads and emits the property value on each notification from the underlying change source, applying the optional distinct gate inline. Replaces an Observable.Create + DistinctUntilChanged pair with one allocation-light sink.

Applies to

net10.0, net10.0-browserwasm1.0, net10.0-desktop1.0, net9.0, net9.0-browserwasm1.0, net9.0-desktop1.0, net8.0, net8.0-ios17.5, net8.0-maccatalyst17.5, net8.0-macos14.2, net8.0-macos14.5, net8.0-tvos17.2, netstandard2.1, net462, net481

Class hierarchy
classDiagram
class ObservableForPropertySink~T1,T2~
class IObservable~IObservedChange~TSender, TValue~~ {
    <>
}
IObservable~IObservedChange~TSender, TValue~~ <|.. ObservableForPropertySink~T1,T2~

Implements: IObservable>

Constructors

NameSummary
.ctorInitializes a new instance of the [ObservableForPropertySink](# class.

Methods

NameSummary
Subscribe
Inherited members